package com.example.demo.service;

import com.example.demo.mapper.UserInfoMapper;
import com.example.demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;
    public UserInfo queryUserInfoByName(String userName) {
        return userInfoMapper.queryUserInfoByName(userName);
    }

    public void register(UserInfo userInfo) {
        userInfoMapper.register(userInfo);
    }
}
